package cn.edu.sgu.www.mhxysy.dto.chongwu_shizhuang;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.consts.RegExps;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class ChongwuShizhuangDTO implements DataTransferObject {

    @ApiModelProperty(value = "ID")
    private String id;

    /**
     * 时装评分
     */
    @PositiveOrZero(message = "时装评分" + CustomMessages.ILLEGAL)
    @NotNull(message = "时装评分" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "时装评分", required = true)
    private Integer score;

    /**
     * 角色ID
     */
    @Pattern(regexp = RegExps.ROLE_ID, message = "角色ID" + CustomMessages.ILLEGAL)
    @NotBlank(message = CustomMessages.ROLE_ID_NOT_NULL)
    @ApiModelProperty(value = "角色ID", required = true)
    private String roleId;

    /**
     * 宠物ID
     */
    @ApiModelProperty(value = "宠物ID")
    private String chongwuId;

    /**
     * 时装类型ID
     */
    @Positive(message = "时装类型ID" + CustomMessages.ILLEGAL)
    @NotNull(message = "时装类型" + CustomMessages.ID_NOT_NULL)
    @ApiModelProperty(value = "时装类型ID", required = true)
    private Integer categoryId;
}